namespace Catastrophe.Common.AttributeEx
{
	public class MbTcpDataAttribute : ComDataAttribute
	{
		public MbAdrTypeEnum MbAdrType { get; set; }

		public ushort MbAdr { get; set; }

		public ushort NumInputs { get; set; }

		public MbTcpDataAttribute()
		{
		}

		public MbTcpDataAttribute(ushort adr, string describe, OprTypeEnum oprType, MbAdrTypeEnum mbAdrType, AllowOprEnum allowOpr = AllowOprEnum.ReadAndWrite)
			: base("", CpuTypeEnum.UnDefine, DataTypeEnum.PropertyType, describe, oprType, allowOpr)
		{
			this.MbAdr = adr;
			this.MbAdrType = mbAdrType;
		}

		public MbTcpDataAttribute(ushort adr, CpuTypeEnum cpuType, DataTypeEnum dataType, string describe, OprTypeEnum oprType, MbAdrTypeEnum mbAdrType, AllowOprEnum allowOpr = AllowOprEnum.ReadAndWrite)
			: base("", cpuType, dataType, describe, oprType, allowOpr)
		{
			this.MbAdr = adr;
			this.MbAdrType = mbAdrType;
		}
	}
}
